package com.example.service;

import com.example.entity.Transaction;
import com.example.mapper.TransactionMapper;
import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;

@Service
public class TransactionService {

    @Resource
    private TransactionMapper transactionMapper;

    /**
     * 保存链上交易流水
     */
    public void saveTransaction(Transaction tx) {
        transactionMapper.insert(tx);
    }

}
